package com.zhiyou100.service;

import java.util.ArrayList;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zhiyou100.dao.ProjectDao;
import com.zhiyou100.model.Project;
import com.zhiyou100.param.ProjectParam;
@Service
public class ProjectServiceImpl implements ProjectService{
@Autowired
private ProjectDao projectDao;

	public ArrayList<Project> findAllBy(ProjectParam pro) {
		ArrayList<Project> al = projectDao.findBy(pro);
		
		return al;
	}

	

	public void add(Project project) {
		projectDao.add(project);
	}

	public void update(Project project) {
		projectDao.update(project);
	}

	public void updateStatus(int id) {
		projectDao.updateStatus(id);
	}

	public void delete(int id) {
		projectDao.delete(id);
	}



	@Override
	public Project findAll(int id) {
		
		return projectDao.findAll(id);
	}




	
	

}
